]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
endSessionDialog: Disconnect signal from the right object
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 6 Mar 2024 10:35:35 +0000 (11:35 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 6 Mar 2024 10:35:35 +0000 (11:35 +0100)
This signal id comes from a signal handler on self, use the right
object when disconnecting it. Spotted by Eugene Popov at
https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/2140#note_2039721.

Fixes: b3f5fdcb6 ("endSessionDialog: Connect to events in the dialog itself")
Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3225>

js/ui/endSessionDialog.js

index 15bfc6f9e075abdf96a3cdae96c4c62aaba52e67..302ed1d614048e6acdd1334655464fdbd76ef389 100644 (file)
@@ -476,7 +476,7 @@ class EndSessionDialog extends ModalDialog.ModalDialog {
 
     _stopAltCapture() {
         if (this._capturedEventId > 0) {
-            global.stage.disconnect(this._capturedEventId);
+            this.disconnect(this._capturedEventId);
             this._capturedEventId = 0;
         }
         this._rebootButton = null;